package Tools;
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.Scanner;
public class Text01 {

        public static void main(String[] args) {
            test03();
        }

        public static void test03() {
            Scanner sc=new Scanner(System.in);
            System.out.println("请输入");
            int num=sc.nextInt();
            System.out.println(num);

        }

        public static void test02() {
            System.out.println(Math.abs(-9));
            for (int i = 0; i <10 ; i++) {
                System.out.print(Math.random()+"\t");

            }


        }
        public static void test01() {
            String stuName="中华人民共和国！";
            String stuName_02="中华人民共和国！";
            System.out.println(stuName.hashCode());
            System.out.println(stuName_02.hashCode());
            System.out.println(stuName==stuName_02);
            System.out.println(stuName);
            String stuName_01=new String("中华人民共和国！");
            System.out.println(stuName_01);
            System.out.println(stuName==stuName_01);
            System.out.println(stuName.equals(stuName_01));
            System.out.println(stuName.length());
            System.out.println(stuName.substring(2));
            System.out.println(stuName.indexOf("好"));

            StringBuffer strb=new StringBuffer("中华人民共和国");
            System.out.println(strb);
            strb.append("!").append("万岁");
            System.out.println(strb);
        }
    }

